// 引包
const express = require('express');
const multer = require('multer');
const upload = multer({});
// 设置路由
const router = express.Router();
// 引入控制器
const controller = require('../controller/classInformationCtrl');
// 初始化班级设置页面
router.get('/classInformation', controller.classInformation);
// 修改班级头像
router.post('/classUpload', upload.single('avatar'), controller.classUpload);
// 修改班级信息
router.post('/updateClass', controller.updateClass);
// 暴露
module.exports = router;